local loginpb = require("login_pb")

local socket = require("socket")

function sendLogin(s)
	login = loginpb.login();
	login.name="test";
	login.id = 1;
	print(login:SerializeToString())
	s.send()
end

function main()
	-- server = assert(socket.connect("localhost", 5555))
	print("Connected!")

	login = loginpb.login();
	login.name="test";
	login.id = 1;
	local a;
	print(login:SerializeToArray(a))



	print("enter a number:");

	while true do
		a=io.read("*number")
		print(a)

		if a == 1 then



		end

	end


end


main();
